package com.mf.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * @author mf
 * @since 2024-06-26
 */
@Getter
@ToString
@Setter
@TableName("t_user")

public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 积分
     */
    private BigDecimal integral;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}